import request from '../utils/request'
import { loginType } from '../interface'


// 登录
export const loginApi  = (data: loginType) => {
    return request({
        url: '/api/h5/login',
        method: 'post',
        data
    })
}

// 获取短信验证码
export const getAuthCode = () => {
    return request({
        url: '/api/getAuthCode',
        method: 'post'
    })
}

// 获取用户信息
export const getUserInfo = () => {
    return request({
        url: '/api/h5/getUserInfo',
        method: 'post'
    })
}